/*
  事件与通知
 */

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Gesture',
      home: Scaffold(
        appBar: AppBar(title: Text('Gesture'),),
        body: Center(
          // 手势检测：有很多种
          child: GestureDetector(
              onTap: (){
                print('onTap');
              },
              onDoubleTap: (){
                print('onDoubleTap');
              },
              child: Text('Click me!', style: TextStyle(fontSize: 16),)),
        ),
      ),
    );
  }
}
